<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="javascript:;" class="sel">{$menutitle}<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form" autocomplete="off">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20 mab20">
		<tr>
			<td align="right" width="200">用户帐号：</td>
			<td>
				<span style="width:300px;display:inline-block">{$info['user_name']}</span>
				<a href="admin.php?mod=user&act=setname&id={$info['user_id']}" class="btn_green mar10" onclick="return pe_dialog(this, '修改用户帐号', 600, 300)">修改帐号</a>
				<a href="admin.php?mod=user&act=setpw&id={$info['user_id']}" class="btn_green mar10" onclick="return pe_dialog(this, '修改登录密码', 600, 300)">登录密码</a>
				<a href="admin.php?mod=user&act=setpaypw&id={$info['user_id']}" class="btn_green mar10" onclick="return pe_dialog(this, '修改支付密码', 600, 300)">支付密码</a>
				<div class="clear"></div>
			</td>
		</tr>
		<tr>
			<td align="right">用户头像：</td>
			<td id="upload">
				<div class="upload_box" style="width:60px; height:60px;">
					<img src="{pe_thumb($info['user_logo'])}" class="upload_img" />
					<input type="hidden" name="info[user_logo]" value="{$info['user_logo']}" class="upload_val">
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">用户等级：</td>
			<td>
				<select name="info[userlevel_id]" class="inputselect" style="width:220px">
				<!--{foreach($cache_userlevel_arr['auto'] as $v):}-->
				<!--{if($v['userlevel_id'] == $userlevel_default_id):}-->
				<option value="{$v['userlevel_id']}" <!--{if($v['userlevel_id']==$info['userlevel_id']):}-->selected="selected"<!--{endif;}-->>【默认】{$v['userlevel_name']}（{$v['userlevel_zhe']*100}%）</option>
				<!--{endif;}-->
				<!--{endforeach;}-->
				<!--{foreach($cache_userlevel_arr['hand'] as $v):}-->
				<option value="{$v['userlevel_id']}" <!--{if($v['userlevel_id']==$info['userlevel_id']):}-->selected="selected"<!--{endif;}-->>【指定】{$v['userlevel_name']}（{$v['userlevel_zhe']*100}%）</option>
				<!--{endforeach;}-->
				</select>
				<span class="c999 mal10">（累计消费：{$info['user_money_cost']} 元）</span>
			</td>
		</tr>
		<tr>
			<td align="right">钱包余额：</td>
			<td>
				<span class="corg fl" style="width:300px">{$info['user_money']} 元</span>
				<a href="admin.php?mod=user&act=addmoney&id={$info['user_id']}" class="btn_green mar10" onclick="return pe_dialog(this, '钱包充值/扣除', 600, 500)">充值/扣除</a>
				<div class="clear"></div>
			</td>
		</tr>
		<tr>
			<td align="right">积分余额：</td>
			<td>
				<span class="fl" style="width:300px">{$info['user_point']} 积分</span>
				<a href="admin.php?mod=user&act=addpoint&id={$info['user_id']}" class="btn_green mar10" onclick="return pe_dialog(this, '积分充值/扣除', 600, 500)">充值/扣除</a>
				<div class="clear"></div>
			</td>
		</tr>
		<tr>
			<td align="right">上级推荐人：</td>
			<td>
				<span class="fl" style="width:300px">{$info['tguser_id']?$info['tguser_name']:'无'}</span>
				<a href="admin.php?mod=user&act=tguser&id={$info['user_id']}" class="btn_green" onclick="return pe_dialog(this, '变更推荐人', 700, 600)">变更推荐人</a>
				<div class="clear"></div>
			</td>
		</tr>
		</table>
	</div>
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang">
		<tr>
			<td align="right" width="200">真实姓名：</td>
			<td><input type="text" name="info[user_tname]" value="{$info['user_tname']}" class="inputall input200" /></td>
		</tr>
		<tr>
			<td align="right">手机号码：</td>
			<td><input type="text" name="info[user_phone]" value="{$info['user_phone']}" class="inputall input200" /></td>
		</tr>
		<tr>
			<td align="right">电子邮箱：</td>
			<td><input type="text" name="info[user_email]" value="{$info['user_email']}" class="inputall input200" /></td>
		</tr>
		</table>
	</div>
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang">
		<tr>
			<td align="right" width="200">注册地区：</td>
			<td><a href="http://www.ip138.com/ips138.asp?ip={$info['user_ip']}" target="_blank" class="ipname"></a><span class="num mal10">（IP：{$info['user_ip']}）</span></td>
		</tr>
		<tr>
			<td align="right">注册日期：</td>
			<td >{$info['user_atime']}</td>
		</tr>
		<tr>
			<td align="right">上次登录：</td>
			<td>{$info['user_ltime']}</td>
		</tr>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pesubmit" />
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn" />
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<link rel="stylesheet" href="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/style.css">
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/plupload.min.js"></script>
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/upload.js"></script>
<script type="text/javascript">
layui.use(['form'], function(){
	form = layui.form;
});
$(function(){
	$("#upload").pe_upload();
	$.getJSON("http://www.phpshe.com/index.php?mod=api&act=ipname&ip={$info['user_ip']}&callback=?", function(json){
		$(".ipname").html(json.ipname);
	})
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			//if (json.code == 1) pe_open('back', 1000);
		})
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->